/**
 * 项目示例-列表综合搜索
 * Date 2023-5-25 09:33:56
 * {
 *   label: '', 筛选项名称
 *   prop: '', 筛选项字段
 *   type: '', 组件类型（'input' | 'select' | 'inputNumber' | 'cascader' | 'datePicker' | 'timePicker' | 'timeSelect' | 'treeSelect' | 'checkbox' | 'radio'）
 *   defaultValue: '', 筛选项默认值（不写默认undefined）
 *   inputProps: {}, 过滤组件属性，跟`ElementPlus`对应组件的`#Attributes`相同
 *   events: {} 仅支持change事件
 * }
 */
import type { FilterItem } from '@/components/FilterBar/types'
export const tableOption: FilterItem[] = [
  {
    label: '发生时间',
    prop: 'date2',
    type: 'datePicker',
    span: 24,
    defaultValue: [],
    inputProps: {
      type: 'datetimerange',
      format: 'YYYY-MM-DD HH:mm',
      'value-format': 'YYYY-MM-DD HH:mm',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'range-separator': '至'
    }
  },
  {
    label: '安检口',
    prop: 'security',
    type: 'input',
    span: 14,
    inputProps: {
      placeholder: '请输入安检口'
    }
  }

]
export const trolleyOptions: FilterItem[] = [
  {
    label: '安检口',
    prop: 'areaName',
    type: 'input',
    suffixIcon: 'Search',
    span: 24,
    inputProps: {
      placeholder: '请输入安检口'
    },
    events: {
      change: (value: any, evt: any) => {
      }
    }
  }
]

export const setOptions: FilterItem[] = [
  {
    label: '排队人数超过',
    prop: 'areaName',
    type: 'inputNumber',
    defaultValue:'u',
    controlsPosition: 'right',
    span: 18,
    inputProps: {
      placeholder: ''
    }
  }
]
